package com.wn55.hrms.mapper;

import com.wn55.hrms.entity.Course;
import com.wn55.hrms.entity.Trainer;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface CourseMapper {
    int deleteByPrimaryKey(String id);

    int insert(Course record);

    Course selectByPrimaryKey(String id);

    List<Course> selectAll();

    int updateByPrimaryKey(Course record);

    List<Course> selectByName(String name);

    void update(Course course);
}